import React, {Component} from 'react';
import {View, Text} from 'react-native';

class PageTwo extends Component {
  static navigationOptions = {
    title: '详情页',
  };

  render() {
    const {navigation} = this.props;
    return (
      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
        <Text>itemId: {navigation.getParam('itemId', '')}</Text>
        <Text>otherParam: {navigation.getParam('otherParam', '')}</Text>
      </View>
    );
  }
}

export default PageTwo;
